//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package come.tool.JDialog;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.come.bean.SuitOperBean;
import org.come.entity.Goodstable;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;
import org.come.until.GsonUtil;

public class StarCardJDialog implements TiShiChuLi {
	public StarCardJDialog() {
	}

	@Override
    public void tipBox(boolean tishi, Object object) {
		if (tishi) {
			Goodstable goodstable = (Goodstable)object;
			SuitOperBean suitOperBean = new SuitOperBean();
			List<BigDecimal> goods = new ArrayList();
			goods.add(goodstable.getRgid());
			suitOperBean.setGoods(goods);
			suitOperBean.setType(58);
			String sendmes = Agreement.suitOperateAgreement(GsonUtil.getGsonUtil().getgson().toJson(suitOperBean));
			SendMessageUntil.toServer(sendmes);
		}

	}
}
